// 验证码
import request from "@/utils/request";

export const yanzheng = (key) => {
  return request({
    method: "get",
    url: "/captcha?key=" + key,
    // headers: {
    //   'User-Agent': 'Apifox/1.0.0 (https://www.apifox.cn)'
    // }
  });
};
// 登录
export const loginApi = (data) => {
  return request({
    method: "post",
    url: "/login",
    data,
  });
};
//
export const menu = () => {
  return request({
    url: "/menus",
  });
};
